﻿namespace EasyToolkit.BindingTemplates.SortAndFilter
{
    using EasyToolkit.BindingTemplates.Definitions.Binding;

    public class FilterOnConditions : FilterElement
    {
        public string Condition
        { get; private set; }

        public bool CaseSensitive
        { get; private set; }

        public FilterElementRelation Relation
        { get; private set; }

        public FilterOnConditions(IBindingDefinition definition, string condition, FilterElementRelation relation, bool caseSensitive)
                                 : base(definition)
        {
            Condition = condition;
            Relation = relation;
            CaseSensitive = caseSensitive;
        }
    }
}
